package text;

import java.util.Calendar;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.junit.Test;

public class TestHib {
	
	/**
	 * 创建数据库
	 */
	@Test
	public void createTable(){
		
		Configuration cfg = new Configuration().configure();
		
		
		SchemaExport se = new SchemaExport(cfg);
		
		se.create(true, true);
		int month = Calendar.getInstance().get(Calendar.MONTH) + 1;
		System.out.println(month);
	}
	
}
